import unittest
from ddt import ddt, data, unpack


@ddt
class Tset1(unittest.TestCase):
    @data('11111', '11122', '11333', '14444')
    def test1(self, value):
        print('打印values的值：' + value)
        self.assertIn('1', value)


@ddt
class Tset2(unittest.TestCase):
    @data(['155555', '188888888'], ['1666666', '17777777'])
    def test2(self, value):
        print(value)


@ddt
class Tset3(unittest.TestCase):
    @data(['aaa', 'bbb'], ['ccc', 'ddd'])
    @unpack
    def test3(self, value1, value2):
        print(value1, value2)


if __name__ == '__main__':
    unittest.main()
